{% extends "start.html" %}

{% block title %}Create an account{% endblock %}

{% block main %}
      <h1>Create an account</h1>
      <form action="." method="post">
        {% if form.error_dict %}
          <p class="error">Please correct the errors below.</p>
        {% endif %}

        {% if form.username.errors %}
          {{ form.username.html_error_list }}
        {% endif %}
        <label for="id_username">Username:</label> {{ form.username }}
            <input type="text" value="Enter your name here!">
        {% if form.password1.errors %}
          {{ form.password1.html_error_list }}
        {% endif %}
        <label for="id_password1">Password: {{ form.password1 }}
            <input type="password">

        {% if form.password2.errors %}
          {{ form.password2.html_error_list }}
        {% endif %}
        <label for="id_password2">Password (again): {{ form.password2 }}
            <input type="password">

        <input type="submit" value="Create the account" />
      </label>
{% endblock %}
